package chapter11;

import java.util.Scanner;

public class Day5 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        double arr[] =new double[8];
        double sum=  1;
        for (int i = 0; i <arr.length ; i++) {
            System.out.println("请输入第" + (i + 1) + "个值");
            arr[i] = input.nextInt();
            sum = sum*arr[i];
        }
        System.out.println("数组中所有数的积为："+sum);
    }
}
